#include<bits/stdc++.h>
using namespace std;
#define inf 0x3f3f3f3f3f
const int N=1e5+1;
inline int read(){
    int f=1,x=0;char c=getchar();
    while(!isdigit(c)){if(c=='-')f=-1;c=getchar();}
    while(isdigit(c)){x=x*10+c-'0';c=getchar();}
    return x*f;
}
int n,a[N];
int main(){
    freopen("duel.in","r",stdin);
    freopen("duel.out","w",stdout);
    n=read();
    for(int i=1;i<=n;i++)a[read()]++;
    int ans=0;
    for(int i=1;i<=1e5;i++){
        if(a[i]){
            ans=max(0,ans-a[i]);
            ans+=a[i];
        }
    }
    printf("%d",ans);
}
